package com.zp.domain;

import java.util.Date;

public class User {

    private int id;
    // 学号
    private String sno;
    // 用户名
    private String username;
    // 密码
    private String password;
    // 出生年月
    private Date birth;
    // 所在学院
    private int faculty;
    // 电话号码
    private String phone;
    // 邮箱
    private String mail;
    // 图片地址
    private String picture;

    public User() {
    }

    public User(int id, String sno, String username, String password, Date birth, int faculty, String phone, String mail) {
        this.id = id;
        this.sno = sno;
        this.username = username;
        this.password = password;
        this.birth = birth;
        this.faculty = faculty;
        this.phone = phone;
        this.mail = mail;
    }

    public User(String sno, String username, String password, Date birth, int faculty, String phone, String mail) {
        this.sno = sno;
        this.username = username;
        this.password = password;
        this.birth = birth;
        this.faculty = faculty;
        this.phone = phone;
        this.mail = mail;
    }

    public User(int id, String sno, String username, String password, Date birth, int faculty, String phone, String mail, String picture) {
        this.id = id;
        this.sno = sno;
        this.username = username;
        this.password = password;
        this.birth = birth;
        this.faculty = faculty;
        this.phone = phone;
        this.mail = mail;
        this.picture = picture;
    }

    public User(String sno, String username, String password) {
        this.sno = sno;
        this.username = username;
        this.password = password;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public int getFaculty() {
        return faculty;
    }

    public void setFaculty(int faculty) {
        this.faculty = faculty;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", sno='" + sno + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", birth=" + birth +
                ", faculty=" + faculty +
                ", phone='" + phone + '\'' +
                ", mail='" + mail + '\'' +
                ", picture='" + picture + '\'' +
                '}';
    }
}
